package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IForget
import fhp.hlhj.giantfold.javaBean.ForgetBean
import fhp.hlhj.giantfold.javaBean.GetSmsBean
import fhp.hlhj.giantfold.module.ForgetModule

/**
 * author: FHP
 * data: on 2018\1\12 0012 11:54
 * E-Mail: 103945089@qq.com
 */
class ForgetPresenter(val iForget: IForget) : ForgetModule.ForgetListener {
    val forgetModule=ForgetModule()
    fun getSms(params: HttpParams){
        forgetModule.getSms(params,this)
    }

    fun smsOk(params: HttpParams){
        forgetModule.forget1(params,this)
    }

    override fun smsOver(smsBean: GetSmsBean) {
            iForget.getSMS(smsBean)
    }

    override fun showLoading() {
        iForget.showLoading()
    }

    override fun smsOk(forgetBean: ForgetBean) {
        iForget.smsOk(forgetBean)
    }
}